package cn.mw.cmdb.entity.modelRelation;

import cn.mw.cmdb.entity.graph.ComboParam;
import cn.mw.cmdb.entity.graph.EdgeParam;
import cn.mw.cmdb.entity.graph.NodeParam;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class LastData {
    private List<NodeParam> nodes = new ArrayList<>();
    private List<EdgeParam> edges = new ArrayList<>();
    private List<ComboParam> combos = new ArrayList<>();

    public void addNodeParam(NodeParam nodeParam) {
        nodes.add(nodeParam);
    }

    public void addEdgeParam(EdgeParam edgeParam) {
        edges.add(edgeParam);
    }

    public void addComboParam(ComboParam comboParam) {
        combos.add(comboParam);
    }
}
